package fit.deni.hibernate.interfaces;

import java.util.Collection;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import fit.deni.beans.Reditelj;

public interface RediteljService {

	@CommitAfter
	public abstract void addDirector(Reditelj reditelj);
	
	@CommitAfter
	public void deleteDirector(Reditelj reditelj);

	public abstract Collection<Reditelj> getAll();

	public Reditelj getDirectorById(int id);
	
	public Reditelj getDirectorByName(String name);
	
}